package step

import (
	mpcprotocol "github.com/wanchain/go-mpc/storeman/storemanmpc/protocol"
)

type GetMpcReadyStepUni struct {
	BaseStep
}

func (ready *GetMpcReadyStepUni) InitStep(result mpcprotocol.MpcResultInterface) error {
	ready.BaseStep.InitStep(result)
	return nil
}

func CreateGetMpcReadyStepUni(totalNum int) *GetMpcReadyStepUni {
	return &GetMpcReadyStepUni{
		*CreateBaseStep(totalNum, 1)}
}

func (ready *GetMpcReadyStepUni) CreateMessage() []mpcprotocol.StepMessage {
	return nil
}

func (ready *GetMpcReadyStepUni) FinishStep(result mpcprotocol.MpcResultInterface,
	mpc mpcprotocol.StoremanManager) error {

	return ready.BaseStep.FinishStep()

}

func (ready *GetMpcReadyStepUni) HandleMessage(msg *mpcprotocol.StepMessage) bool {
	return true
}
